package com.huang.canal.service;

import com.huang.canal.client.CourseClient;
import com.huang.canal.entity.ESbean;
import com.huang.canal.entity.EsRequestParam;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class EsServiceimpl implements EsService{

    @Qualifier("com.huang.canal.client.CourseClient")
    @Autowired
    private CourseClient client;

    @Override
    public ESbean findOne(String id) {
        return  client.getOne(id);
    }

    @Override
    public List<ESbean> findOne2(String id) {
        return  client.getOne2(id);
    }

}
